package com.naizhuai.Model.db.ainote;

import android.support.annotation.NonNull;

import java.util.List;

/**
 * @author：lichenxi
 * @date 2018/2/22 11
 * email：525603977@qq.com
 * Fighting
 */
public interface NoteDataSourse {

    interface LoadNotesCallback {

        void onNotesLoaded(List<Note> tasks);

        void onDataNotAvailable();
    }

    interface GetNoteCallback {

        void onNoteLoaded(Note note);

        void onDataNotAvailable();
    }

    void getNotes(@NonNull LoadNotesCallback callback);
    void getTitleNotes(@NonNull LoadNotesCallback callback);
    void getCreationNotes(@NonNull LoadNotesCallback callback);

    void getNote(@NonNull int noteId, @NonNull GetNoteCallback callback);

    void saveNote(@NonNull Note note);

    void updateNote(@NonNull Note note);

    void deleteNotes(List<Note> notes);

}
